Migrating from Macromedia Flash MX to Flash MX 2004
Table of Contents
- Introduction
- ActionScript in Flash MX and Flash MX 2004
- Components in Flash MX and Flash MX 2004
- Video in Flash MX and Flash MX 2004
- Data Integration in Flash MX and Flash MX 2004
- Authoring Environment Changes in Flash MX 2004
- Screens in Flash MX Professional 2004
- Flash Player 7 Enhancements and Changes
Authoring Environment Changes in Flash MX 2004
Macromedia Flash MX 2004 unveils several new authoring features, including an integrated Help panel, a Behaviors panel for easily adding scripts, and a History panel. Here's how these changes improve or affect your workflow.
Writing Scripts
Flash MX 2004 introduces several changes and enhancements to how you add ActionScript to Flash documents.
Normal Mode and the Behaviors Panel: In previous versions of Flash the Actions panel provided two scripting modes: Expert and Normal. Normal scripting mode helped designers and novice ActionScript programmers add interactivity easily to their animations and presentations. By contrast, Expert scripting mode was intended more for advanced programmers who wrote customized and complex scripts.
In Flash MX 2004 the Actions panel no longer features Normal scripting mode. What was called Expert scripting mode is now the default (and only) mode for writing scripts in the Actions panel.
To replace the features provided by Normal scripting mode, Flash MX 2004 now has the Behaviors panel, which lets you easily add common ActionScript functionality, such as frame navigation, loading of external SWFs and JPEGs, controlling stacking order of movie clips, and movie clip dragging functionality. You can also use the Actions panel to modify (or learn from) the code created by the Behaviors panel.
Script Window: Flash Professional includes a built-in ActionScript editor, called the Script window, which lets you create external ActionScript (AS) files easily without leaving the Flash authoring environment. The Script window has the same features as the Actions panel you use to add scripts to FLA files, such as the Actions toolbox, code hinting, autoformatting, and syntax-checking.
Reorganized Actions Panel Categories: The Actions panel categories in Flash MX 2004 have been reorganized to reflect the ActionScript language structure better and to make the language more approachable and learnable for programmers new to ActionScript (see Figure 2).
Figure 2. The Actions toolbox
Invoking Code Hints: In previous versions of Flash, to trigger code hints—pop-up menus that list possible method or property names for a given data type—you need to end all variable names with specific suffixes. For example, the default suffix is "_mc" for movie clip objects and "_xml" for XML documents.
This feature is still supported in Flash MX 2004 but now you can invoke code hints for a variable by strictly typing that variable using colon (:) syntax. For example, suppose you type the following:
var names:Array = new Array(); names.
As soon as you type the period (.), Flash displays a list of methods and properties available for Array objects because you typed the variable as an array. For more information on strict data typing, see the section "Strict Data Typing in ActionScript 2.0" earlier in this article.
Getting Help
The Reference panel in Flash MX provides detailed descriptions of functions, statements, and objects listed in the Actions toolbox. In addition, the entire Flash help system appears in an online format viewable in a web browser.
In Flash MX 2004 the Reference panel and online HTML help system are removed; their features now appear in a single location: the Help panel (see Figure 3). To access the Help panel, choose Help > Help.
The Help panel provides enhanced functionality not available in previous Flash help systems:
- Auto-update feature: Download updates to the Flash help system as they become available.
- Integrated tutorials and lessons: Because the Help panel is part of the Flash environment, you can complete Flash lessons and tutorials without switching back and forth between the web browser and the authoring tool.
- Improved search functionality: Search the Flash documentation more easily and display the results in a collapsible tree view.
Figure 3. Help panel in Flash MX 2004
Changes to "Undo" and the History Panel
The Undo feature (Edit > Undo) in previous versions of Flash was object-specific: There was a separate set of undo steps for different objects, such as the Stage, movie clips, and library. In Flash MX 2004, the undo stack is now document-specific.
The History panel in Flash MX 2004 shows a list of the steps you've performed in the active document since you created or opened that document, up to a specified maximum number of steps.
The History panel offers many powerful authoring features not available in previous versions of Flash, including the following:
- Undoing or redoing individual or multiple steps at once
- Applying steps in the History panel to the same object or to a different object in the document
- Creating commands from several steps and running them from the Commands menu